import request from '@/axios';

 


export const getCLList = (current, size, params) => {
  return request({
    url: '/xrsk-qyClasses/qyClassesLessons/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}


export const getList = (current, size, params) => {
  return request({
    url: '/xrsk-qyClasses/qyClassesLessons/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const getDetail = (id) => {
  return request({
    url: '/xrsk-qyClasses/qyClassesLessons/detail',
    method: 'get',
    params: {
      id
    }
  })
}

export const remove = (ids) => {
  return request({
    url: '/xrsk-qyClasses/qyClassesLessons/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}

export const add = (row) => {
  return request({
    url: '/xrsk-qyClasses/qyClassesLessons/submit',
    method: 'post',
    data: row
  })
}
export const addLesson = (row) => {
    return request({
      url: '/xrsk-qyClasses/qyClassesLessons/submit',
      method: 'post',
      data: row
    })
  }

 

export const update = (row) => {
  return request({
    url: '/xrsk-qyClasses/qyClassesLessons/submit',
    method: 'post',
    data: row
  })
}

